Integrand size = 31, antiderivative size = 115 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {(c-d)^2 \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {2 (c-d) (c+4 d) \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}+\frac {\left (2 c^2+6 c d+7 d^2\right ) \tan (e+f x)}{15 f \left (a^3+a^3 \sec (e+f x)\right )} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {4072, 91, 79, 37} \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {\left (2 c^2+6 c d+7 d^2\right ) \tan (e+f x)}{15 f \left (a^3 \sec (e+f x)+a^3\right )}+\frac {(c-d)^2 \tan (e+f x)}{5 f (a \sec (e+f x)+a)^3}+\frac {2 (c+4 d) (c-d) \tan (e+f x)}{15 a f (a \sec (e+f x)+a)^2} \]
[In]
[Out]
Rule 37
Rule 79
Rule 91
Rule 4072
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (a^2 \tan (e+f x)\right ) \text {Subst}\left (\int \frac {(c+d x)^2}{\sqrt {a-a x} (a+a x)^{7/2}} \, dx,x,\sec (e+f x)\right )}{f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}} \\ & = \frac {(c-d)^2 \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}-\frac {\tan (e+f x) \text {Subst}\left (\int \frac {a^3 \left (2 c^2+6 c d-3 d^2\right )+5 a^3 d^2 x}{\sqrt {a-a x} (a+a x)^{5/2}} \, dx,x,\sec (e+f x)\right )}{5 a^2 f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}} \\ & = \frac {(c-d)^2 \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {2 (c-d) (c+4 d) \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}-\frac {\left (\left (2 c^2+6 c d+7 d^2\right ) \tan (e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a-a x} (a+a x)^{3/2}} \, dx,x,\sec (e+f x)\right )}{15 f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}} \\ & = \frac {(c-d)^2 \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {2 (c-d) (c+4 d) \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}+\frac {\left (2 c^2+6 c d+7 d^2\right ) \tan (e+f x)}{15 f \left (a^3+a^3 \sec (e+f x)\right )} \\ \end{align*}
Time = 0.79 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.73 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {\left (2 c^2+6 c d+7 d^2+6 \left (c^2+3 c d+d^2\right ) \cos (e+f x)+\left (7 c^2+6 c d+2 d^2\right ) \cos ^2(e+f x)\right ) \sin (e+f x)}{15 a^3 f (1+\cos (e+f x))^3} \]
[In]
[Out]
Time = 0.64 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.58
method | result | size |
parallelrisch | \(\frac {\left (\left (c -d \right )^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{4}+\frac {10 \left (-c^{2}+d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}}{3}+5 \left (c +d \right )^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{20 a^{3} f}\) | \(67\) |
derivativedivides | \(\frac {\frac {\left (c -d \right )^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{5}}{5}+\frac {2 \left (-c -d \right ) \left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}{3}+\tan \left (\frac {f x}{2}+\frac {e}{2}\right ) \left (-c -d \right )^{2}}{4 f \,a^{3}}\) | \(74\) |
default | \(\frac {\frac {\left (c -d \right )^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{5}}{5}+\frac {2 \left (-c -d \right ) \left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}{3}+\tan \left (\frac {f x}{2}+\frac {e}{2}\right ) \left (-c -d \right )^{2}}{4 f \,a^{3}}\) | \(74\) |
risch | \(\frac {2 i \left (15 c^{2} {\mathrm e}^{4 i \left (f x +e \right )}+30 c^{2} {\mathrm e}^{3 i \left (f x +e \right )}+30 c d \,{\mathrm e}^{3 i \left (f x +e \right )}+40 c^{2} {\mathrm e}^{2 i \left (f x +e \right )}+30 c d \,{\mathrm e}^{2 i \left (f x +e \right )}+20 d^{2} {\mathrm e}^{2 i \left (f x +e \right )}+20 c^{2} {\mathrm e}^{i \left (f x +e \right )}+30 d \,{\mathrm e}^{i \left (f x +e \right )} c +10 d^{2} {\mathrm e}^{i \left (f x +e \right )}+7 c^{2}+6 c d +2 d^{2}\right )}{15 f \,a^{3} \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{5}}\) | \(161\) |
norman | \(\frac {\frac {\left (c^{2}-2 c d +d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{9}}{20 a f}+\frac {\left (c^{2}+2 c d +d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{4 a f}-\frac {\left (2 c^{2}+3 c d +d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}{3 a f}-\frac {\left (4 c^{2}-3 c d -d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{7}}{15 a f}+\frac {\left (19 c^{2}+12 c d -d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{5}}{30 a f}}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-1\right )^{2} a^{2}}\) | \(179\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.98 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {{\left ({\left (7 \, c^{2} + 6 \, c d + 2 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + 2 \, c^{2} + 6 \, c d + 7 \, d^{2} + 6 \, {\left (c^{2} + 3 \, c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{15 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}} \]
[In]
[Out]
\[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {\int \frac {c^{2} \sec {\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx + \int \frac {d^{2} \sec ^{3}{\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx + \int \frac {2 c d \sec ^{2}{\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx}{a^{3}} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 184, normalized size of antiderivative = 1.60 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {\frac {d^{2} {\left (\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}} + \frac {c^{2} {\left (\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}} + \frac {6 \, c d {\left (\frac {5 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {\sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}}}{60 \, f} \]
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.12 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {3 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 3 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 10 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 10 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 15 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 30 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 15 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{60 \, a^{3} f} \]
[In]
[Out]
Time = 13.75 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.69 \[ \int \frac {\sec (e+f x) (c+d \sec (e+f x))^2}{(a+a \sec (e+f x))^3} \, dx=\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,{\left (c+d\right )}^2}{4\,a^3\,f}-\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (2\,c^2-2\,d^2\right )}{12\,a^3\,f}+\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,{\left (c-d\right )}^2}{20\,a^3\,f} \]
[In]
[Out]